<div id="body"  xmlns="http://www.w3.org/1999/xhtml">
<div class="width100">
    <div class="welcomenote">Store personal notes</div>
    <div id="newnote" class="newnote">new</div>
</div>
{% if notes %}
{% for note in notes %}
<div class="mainnode">
    {% if note.edit %}
    <input id="notetitle_{{ note.key.id }}" class="notetitle" value="{{ note.title }}"/>
    {% else %}
    <div id="notetitle_{{ note.key.id }}" class="notetitle">{{ note.title }}</div>
    {% endif %}
    <div id="notelabel_{{ note.key.id }}" class="notelabel">{{ note.date }}</div>
    <div id="editnote_{{ note.key.id }}" class="editnote">edit</div>
    <div id="applynote_{{ note.key.id }}" class="applynote">apply</div>
    <div id="removenote_{{ note.key.id }}" class="removenote">remove</div>
    {% if note.edit %}
    <textarea id="textarea_{{ note.key.id }}" class="notearea"  readonly="readonly">{{ note.note }}</textarea>
    {% else %}
    <textarea id="textarea_{{ note.key.id }}" class="notearea">{{ note.note }}</textarea>
    {% endif %}
</div>
{% endfor %}
{% endif %}
</div>
